package cn.zhiran.basic.query;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class BaseQuery {
    //当前页
    @ApiModelProperty("当前页")
    private Integer currentPage=1;
    //每页显示条数
    @ApiModelProperty("每页显示条数")
    private Integer pageSize=5;
    //高级查询参数
    private String keyword;
    private Integer getBegin(){

        return (this.currentPage-1)*this.pageSize;
    }


}
